package io.zim.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户实体
 * @author zzh
 * @email 862583291@qq.com
 * @date 2018-12-16 18:51:40
 */
@TableName("nideshop_user")
@Data
public class UserVo implements Serializable {
    private static final long serialVersionUID = 1L;
    //主键
    @TableId(type = IdType.AUTO)
    private Long userId;
    //会员名称
    private String username;
    //会员密码
    private String password;
    //性别
    private Integer gender;
    //出生日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    //注册时间
    private Date createTime;
    //最后登录时间
    private Date lastLoginTime;
    //最后登录Ip
    private String lastLoginIp;
    //会员等级
    private Integer userLevelId;
    //昵称
    private String nickname;
    //手机号码
    private String mobile;
    //注册Ip
    private String registerIp;
    //头像
    private String avatar;
    //微信Id
    private String weixinOpenid;
    //账户余额
    private BigDecimal balanceFee;
    //真实姓名
    private String realname;
    //身份证号码
    private String idcard;
    //账户余额
    private BigDecimal signFee;
    //签到时间
    private Date signTime;
    //邮箱
    private String email;

    //翻译字段用户级别
    @TableField(exist = false)
    private String userLevel;
}
